<cfparam default="-1" name="url.StepID" />
<cfscript>    
    view = createObject("component", session.rootDir & ".views.layout");
    if( Session.Auth EQ True and (Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR) ){
        view.init("Step 3: Spawn Creation",
            "/jquery/ui-1.8.5/jquery-ui.min.js,/jquery/plugins/scrollTo/jquery.scrollTo-1.4.2-min.js, /" & session.rootDir & "/static/js/NonSCF/Step3-SpawnCreation.js",
            "/jquery/ui-1.8.5/themes/cupertino/jquery-ui.css","Home",index);
    }else{
        view.init("Denied","","","Home","Denied");
    }    
    view.html();
</cfscript>

<cffunction name="index" access="public" output="true" returntype="any">
    <cfscript>
        import models.*;
        KronosQueries = CreateObject("component", session.rootDir & ".DatabaseQueries.Kronos");
        AccessControlQueries = CreateObject("component", session.rootDir & ".DatabaseQueries.AccessControl");
        StepAction = entityLoadByPK("StepActions", URL.StepID);
        Employee = entityLoadByPK("Employee", StepAction.getEmployeeID());
    </cfscript>
    <h1 class="title">Step 3: Create Employee Records</h1>
    <div class="entry">
        <cfform name="frmStep4" method="post">        
            <p>The creation of the contractor records has been initiated for 
            <strong>#Employee.getFullName()#</strong>. 
                Please wait while E-PAR generates the following system records:
            </p>

            <input type="hidden" id="StepID" value="#URL.StepID#" />    
            <table width="100%">
                <tr>
                    <td width='30'>&nbsp;</td>
                    <td>
                        <table>
                            <tr>
                                <td valign='top' width='45%'>Network Account:</td>
                                <td valign='top' width='55%'>
                                    <span id="AD" class="error"></span>&nbsp;<img id="AD" src="#session.StaticPages#/images/blank.jpg" align="ABSMiddle" />
                                </td>
                            </tr>
                            <tr>
                                <td valign='top' nowrap="nowrap">Rosetta Stone Record:</td>
                                <td valign='top'>
                                    <span id="Rosetta" class="error"></span>&nbsp;<img id="Rosetta" src="#session.StaticPages#images/blank.jpg"  align="ABSMiddle"/>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td width='25' colspan="2">&nbsp;</td>
                </tr>
                <tr>
                    <td width='25'>&nbsp;</td>
                    <td>
                        <span id="Notice" class="error">During this time, 
                            please refrain from refreshing the page.
                        </span>                             
                    </td>
                </tr>
            </table>           
        </cfform>
    </div>        

</cffunction>